home *** CD-ROM | disk | FTP | other *** search
- Path: uuneo.neosoft.com!usenet
- From: Wmatthew@lan-aces.com (W. Matthews)
- Newsgroups: comp.lang.c++
- Subject: Re: Help with templates. Ugh!
- Date: 14 Mar 1996 15:18:57 GMT
- Organization: LAN-ACES, Inc.
- Message-ID: <4i9dd1$dtu@uuneo.neosoft.com>
- References: <4i1v7u$na2@atlas.tncnet.com>
- NNTP-Posting-Host: 198.65.178.8
- X-Newsreader: WinVN 0.92.5
-
- In article <4i1v7u$na2@atlas.tncnet.com>, Simon Lee (Simon Lee) says:
- >
- >
- >Help!
- >
- >I'm trying to create a library with a template class, but when I try to
- >instanciate it in my main program, I get an unresolved symbol error. I
- >read through the VC++ 4.0 help files, and found out that I need to
- >explicitly instanciate the object, but that defeats the purpose of having
- >a template class. Does anyone know how I can create a library of template
- >classes, and be able to link them without the unresolved symbol error?
- >I'm trying to create a template link list class.
- >
- >Please email any help.
- >
- >Thank you,
- >Simon Lee
- >
- I haven't tried to do this personally, but if you make 1 example
- instantiation (ie: int), can you then use the templates as well?
- ______________________________________________
- |Wyatt Matthews: Tech Support Department |
- |WMATTHEW@LAN-ACES.COM -Internet- |
- |WMATTHEW.MHS@LAN-ACES -MHS- |
- |LAN-ACES Tech Support (713)890-9786 |
- |LAN-ACES BBS (713)890-9790 |
- |LAN-ACES Fax (713)890-9731 |
- |LAN-ACES Sales (713)890-9787 |
- ______________________________________________
-